<%-- 
    Document   : spdcf_main
    Created on : Jan 5, 2009, 1:10:38 PM
    Author     : City_Z
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<h3>Spdcf</h3>
<table>
    <tr>
        <td class="menucon">
            <html:link action="/spdcf_new">New Spdcf</html:link>
        </td>
    </tr>
</table>
<table>
    <tr class="table_header">
        <th>No.</th>
        <th>Quotation</th>    
        <th>Created</th>
        <th>Customer</th>
        <th>Prod. Status</th>
        <th>Fin. Status</th>
        <th>PPN</th>
        <th>Action</th>
    </tr>
     <c:set var="totalMarginKeuangan" value="0"/>
        <c:forEach items="${listSpdcf}" var="item">
            <tr>
                <td>${x+1}.</td>                        
                <td>${item.inquery.noQuotation}</td>
                <td><f:formatDate type="date" value="${item.tglSdpcf}"/></td>
                <td>${item.customer.nama}</td>
                <td align="center">
                    <c:if test="${item.wasKonfirmByProduction==1}">
                        <html:img src="page/images/iconset/confirm.png" alt="Confirmed" title="Confirmed"/>
                    </c:if>
                    <c:if test="${item.wasKonfirmByProduction==0}">
                        <html:img src="page/images/iconset/not-confirm.png" alt="Not confirmed" title="Not confirmed"/>
                    </c:if>
                </td>
                <td align="center">
                    <c:if test="${item.wasKonfirmByFinance==1}">
                        <html:img src="page/images/iconset/confirm.png" alt="Confirmed" title="Confirmed"/>
                    </c:if>
                    <c:if test="${item.wasKonfirmByFinance==0}">
                        <html:img src="page/images/iconset/not-confirm.png" alt="Not confirmed" title="Not confirmed"/>
                    </c:if>
                </td>
                <td align="right">${item.ppn}</td>
                <td>
                    <html:link action="/spdcf_detail" paramName="item" paramProperty="id" paramId="id">Detail</html:link>
                    <html:link action="/spdcf_edit?step=edit" paramName="item" paramProperty="id" paramId="id">Edit</html:link>
                    <html:link action="/spdcf_edit?step=delete" paramName="item" paramProperty="id" paramId="id">Delete</html:link>
                </td>
            </tr>
            <c:set var="x" value="${x+1}"/>                   
        </c:forEach>
    <tr class="table_footer">
        <td colspan="8">PT. Dhemar Nusantara - PT. Rahmi Ida Nusantara</td>
    </tr>
</table>
